xend: handle extended PCI configuration space when saving state
authorSteven Noonan <snoonan@amazon.com>
Fri, 30 Aug 2013 23:40:42 +0000 (16:40 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 3 Sep 2013 15:36:47 +0000 (16:36 +0100)
commit1893cf77992cc0ce9d827a8d345437fa2494b540
treecdb2f8c4a24a13ee86efb0845194deb97d68a681
parent4b272d61e8ac507ec98d075d41b56eb9ff83b596
xend: handle extended PCI configuration space when saving state

Newer PCI standards (e.g., PCI-X 2.0 and PCIe) introduce extended
configuration space which is larger than 256 bytes. This patch uses
stat() to determine the amount of space used to correctly save all of
the PCI configuration space. Resets handled by the xen-pciback driver
don't have this problem, as that code correctly handles saving
extended configuration space.

Signed-off-by: Steven Noonan <snoonan@amazon.com>
Reviewed-by: Matt Wilson <msw@amazon.com>
[msw: adjusted commit message]
Signed-off-by: Matt Wilson <msw@amazon.com>
tools/python/xen/util/pci.py